package com.memorypalace.knowledge.mapper;

import java.util.List;

import com.memorypalace.knowledge.pojo.KnowledgeTree;

public interface KnowledgeTreeMapper {
	Integer addKnowledgeTree(KnowledgeTree kt);
	List<KnowledgeTree> getKnowledgeTreeByUserId(String userId);
	List<KnowledgeTree> getKnowledgeTreeByFatherId(String fatherId);
	KnowledgeTree getKnowledgeTreeByKnowledgeId(String knowledgeId);
	KnowledgeTree getKnowledgeTreeByKnowledgeIdWithNoteList(String knowledgeId);
	Integer modifyKnowledgeTree(KnowledgeTree kt);
	Integer deleteKnowledgeTree(String knowledgeId);
}
